import service from '@/utils/request'

export const setRechargeListApi = (data) => {
  return service.post('gps/pay/computePrice', data)
}
export const payApi = (data) => {
  return service.post('/gps/pay/createOrder', data)
}
export const UpdateSimApi = (iccid) => {
  return service.post('gps/sim/updateCardInfo?iccid=' + iccid)
}

export const renewalSimApi = (iccid) => {
  return service.post('gps/sim/renewal?iccid=' + iccid)
}

export const submitApi = (data) => {
  return service.post('gps/sim', data)
}
export const goodsDataApi = (data) => {
  return service.get('gps/pay/goods/list', {
    params: data
  })
}
export const payOrderApi = (data) => {
  return service.post(
    '/gps/pay/payOrder',
    {},
    {
      params: data
    }
  )
}
export const getSimInfoApi = (iccid) => {
  return service.get('gps/sim/info?iccid=' + iccid)
}
